package cn.xuewenbao.edu.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author mafayu
 * @since 2021-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Comment对象", description="评论表")
public class CommentVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论id")
    @TableId(value = "commentId", type = IdType.ASSIGN_ID)
    private String commentId;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private String userId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "用户头像")
    private String userAvatar;

    @ApiModelProperty(value = "父id")
    @TableField("parentCommentId")
    private String parentCommentId;

    @ApiModelProperty(value = "目标id")
    @TableField("targetCommentId")
    private String targetCommentId;

    @ApiModelProperty(value = "目标用户id")
    @TableField("targetUserId")
    private String targetUserId;

    @ApiModelProperty(value = "目标用户名称")
    private String targetUserName;

    @ApiModelProperty(value = "目标用户头像")
    private String targetUserAvatar;

    @ApiModelProperty(value = "内容id")
    @TableField("contentId")
    private String contentId;

    @ApiModelProperty(value = "内容类型id")
    @TableField("columnType")
    private String columnType;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    private Date gmtModified;


}
